package com.ruoyi.voucher.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 凭证附件对象 voucher_attachment
 *
 * @author ruoyi
 * @date 2025-02-25
 */
public class VoucherAttachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 附件ID */
    private Long attachmentId;

    /** 附件名称 */
    @Excel(name = "附件名称", required = false)
    private String attachmentName;

    /** 附件存储地址 */
    @Excel(name = "附件存储地址", required = false)
    private String attachmentUrl;

    /** 关联凭证ID */
    @Excel(name = "关联凭证ID", required = false)
    private Long voucherId;

    /** 创建人 */
    private String creator;

    public void setAttachmentId(Long attachmentId)
    {
        this.attachmentId = attachmentId;
    }

    public Long getAttachmentId()
    {
        return attachmentId;
    }
    public void setAttachmentName(String attachmentName)
    {
        this.attachmentName = attachmentName;
    }

    public String getAttachmentName()
    {
        return attachmentName;
    }
    public void setAttachmentUrl(String attachmentUrl)
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl()
    {
        return attachmentUrl;
    }
    public void setVoucherId(Long voucherId)
    {
        this.voucherId = voucherId;
    }

    public Long getVoucherId()
    {
        return voucherId;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attachmentId", getAttachmentId())
            .append("attachmentName", getAttachmentName())
            .append("attachmentUrl", getAttachmentUrl())
            .append("voucherId", getVoucherId())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .toString();
    }
}
